package entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 部门类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dept {
    /**
     * 部门id
     */
    private int id;
    /**
     * 部门名称
     */
    private String name;
    /**
     * 设立时间
     */
    private Date establishmentTime;
    /**
     * 撤销时间
     */
    private Date cancellationTime;
    /**
     * 部门状态
     * 1 撤销
     * 2 运行中
     */
    private int status;
    /**
     * 省份或直辖市
     */
    private int province;
    /**
     * 城市
     */
    private int city;
    /**
     * 区县
     */
    private int district;
    /**
     * 详细地址
     */
    private String address;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getEstablishmentTime() {
        return establishmentTime;
    }

    public void setEstablishmentTime(Date establishmentTime) {
        this.establishmentTime = establishmentTime;
    }

    public Date getCancellationTime() {
        return cancellationTime;
    }

    public void setCancellationTime(Date cancellationTime) {
        this.cancellationTime = cancellationTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getProvince() {
        return province;
    }

    public void setProvince(int province) {
        this.province = province;
    }

    public int getCity() {
        return city;
    }

    public void setCity(int city) {
        this.city = city;
    }

    public int getDistrict() {
        return district;
    }

    public void setDistrict(int district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
